package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 物料流转统计表
 * </p>
 *
 * @author LX
 * @since 2018-09-08
 */
@TableName("erp_materiel_flow_summary")
public class ErpMaterielFlowSummary extends Model<ErpMaterielFlowSummary> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 入库的仓库ID
     */
    @TableField("warehouse_id")
    private Integer warehouseId;
    /**
     * 物料ID
     */
    @TableField("materiel_id")
    private Integer materielId;
    /**
     * 订单编号
     */
    @TableField("work_sheet_id")
    private String workSheetId;

    /**
     * 订单编号
     */
    @TableField("carplate")
    private String carplate;

    public String getCarplate() {
        return carplate;
    }

    public void setCarplate(String carplate) {
        this.carplate = carplate;
    }
    /**
     * 物料 流转日期
     */
    @TableField("materiel_flow_date")
    private String materielFlowDate;
    /**
     * 物料 入库数量
     */
    @TableField("materiel_storage_number")
    private Integer materielStorageNumber;
    /**
     * 物料 入库价格
     */
    @TableField("materiel_storage_price")
    private Double materielStoragePrice;
    /**
     * 物料 出库数量
     */
    @TableField("materiel_outflow_number")
    private Integer materielOutflowNumber;
    /**
     * 物料 出库价格
     */
    @TableField("materiel_outflow_price")
    private Double materielOutflowPrice;
    /**
     * 是否含税0含税
     */
    @TableField("including_tax")
    private Integer includingTax;
    /**
     * 物料 流转类型0入库
     */
    @TableField("materiel_flow_type")
    private Integer materielFlowType;
    /**
     * 1入库客户留存
     */
    @TableField("materiel_retained")
    private Integer materielRetained;
    /**
     * 1出库客户存留
     */
    @TableField("out_warehouse_retauned")
    private Integer outWarehouseRetauned;     //数据库里没有


    /**
     * 科目
     */
    @TableField("flow_subject")
    private String flowSubject;
    /**
     * 来源
     */
    @TableField("materiel_source")
    private String materielSource;
    /**
     * 去向
     */
    @TableField("materiel_whereabouts")
    private String materielWhereabouts;
    /**
     * 经办
     */
    @TableField("flow_attn")
    private String flowAttn;
    /**
     * 出库的仓库id
     */
    @TableField("out_warehouse_id")
    private Integer outWarehouseId;

    /**
     * 出库的仓库id
     */
    @TableField("materiel_production_id")
    private String materielProductionId;

    public String getMaterielProductionId() {
        return materielProductionId;
    }

    public void setMaterielProductionId(String materielProductionId) {
        this.materielProductionId = materielProductionId;
    }

    //服务中心
    private transient  String carServiceCentre;
    //物料单位
    private transient String materielUnit;

    public String getMaterielUnit() {
        return materielUnit;
    }

    public void setMaterielUnit(String materielUnit) {
        this.materielUnit = materielUnit;
    }

    public String getCarServiceCentre() {

        return carServiceCentre;
    }

    public void setCarServiceCentre(String carServiceCentre) {
        this.carServiceCentre = carServiceCentre;
    }

    private transient ErpMaterielFlowMateriel flowMateriel;

    public ErpMaterielFlowMateriel getFlowMateriel() {
        return flowMateriel;
    }

    public void setFlowMateriel(ErpMaterielFlowMateriel flowMateriel) {
        this.flowMateriel = flowMateriel;
    }

    public Integer getOutWarehouseRetauned() {
        return outWarehouseRetauned;
    }

    public void setOutWarehouseRetauned(Integer outWarehouseRetauned) {
        this.outWarehouseRetauned = outWarehouseRetauned;
    }

    public Integer getOutWarehouseId() {
        return outWarehouseId;
    }

    public void setOutWarehouseId(Integer outWarehouseId) {
        this.outWarehouseId = outWarehouseId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Integer getMaterielId() {
        return materielId;
    }

    public void setMaterielId(Integer materielId) {
        this.materielId = materielId;
    }

    public String getWorkSheetId() {
        return workSheetId;
    }

    public void setWorkSheetId(String workSheetId) {
        this.workSheetId = workSheetId;
    }

    public String getMaterielFlowDate() {
        return materielFlowDate;
    }

    public void setMaterielFlowDate(String materielFlowDate) {
        this.materielFlowDate = materielFlowDate;
    }

    public Integer getMaterielStorageNumber() {
        return materielStorageNumber;
    }

    public void setMaterielStorageNumber(Integer materielStorageNumber) {
        this.materielStorageNumber = materielStorageNumber;
    }

    public Double getMaterielStoragePrice() {
        return materielStoragePrice;
    }

    public void setMaterielStoragePrice(Double materielStoragePrice) {
        this.materielStoragePrice = materielStoragePrice;
    }

    public Integer getMaterielOutflowNumber() {
        return materielOutflowNumber;
    }

    public void setMaterielOutflowNumber(Integer materielOutflowNumber) {
        this.materielOutflowNumber = materielOutflowNumber;
    }

    public Double getMaterielOutflowPrice() {
        return materielOutflowPrice;
    }

    public void setMaterielOutflowPrice(Double materielOutflowPrice) {
        this.materielOutflowPrice = materielOutflowPrice;
    }

    public Integer getIncludingTax() {
        return includingTax;
    }

    public void setIncludingTax(Integer includingTax) {
        this.includingTax = includingTax;
    }

    public Integer getMaterielFlowType() {
        return materielFlowType;
    }

    public void setMaterielFlowType(Integer materielFlowType) {
        this.materielFlowType = materielFlowType;
    }

    public Integer getMaterielRetained() {
        return materielRetained;
    }

    public void setMaterielRetained(Integer materielRetained) {
        this.materielRetained = materielRetained;
    }

    public String getFlowSubject() {
        return flowSubject;
    }

    public void setFlowSubject(String flowSubject) {
        this.flowSubject = flowSubject;
    }

    public String getMaterielSource() {
        return materielSource;
    }

    public void setMaterielSource(String materielSource) {
        this.materielSource = materielSource;
    }

    public String getMaterielWhereabouts() {
        return materielWhereabouts;
    }

    public void setMaterielWhereabouts(String materielWhereabouts) {
        this.materielWhereabouts = materielWhereabouts;
    }

    public String getFlowAttn() {
        return flowAttn;
    }

    public void setFlowAttn(String flowAttn) {
        this.flowAttn = flowAttn;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpMaterielFlowSummary{" +
        ", id=" + id +
        ", warehouseId=" + warehouseId +
        ", materielId=" + materielId +
        ", workSheetId=" + workSheetId +
        ", materielFlowDate=" + materielFlowDate +
        ", materielStorageNumber=" + materielStorageNumber +
        ", materielStoragePrice=" + materielStoragePrice +
        ", materielOutflowNumber=" + materielOutflowNumber +
        ", materielOutflowPrice=" + materielOutflowPrice +
        ", includingTax=" + includingTax +
        ", materielFlowType=" + materielFlowType +
        ", materielRetained=" + materielRetained +
        ", flowSubject=" + flowSubject +
        ", materielSource=" + materielSource +
        ", materielWhereabouts=" + materielWhereabouts +
        ", flowAttn=" + flowAttn +
        "}";
    }
}
